<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>

<script src="${ctxStatic}/jquery/jquery-1.8.3.min.js"></script>
<script src="${ctxStatic}/vendor/jquery-select2/3.4/select2.js" type="text/javascript"></script>
<script src="${ctxStatic}/vendor/parsleyjs/dist/parsley.js" type="text/javascript"></script>
<meta name="decorator" content="default"/>


<style>
    .col-margin {margin: 10px 0px;}
    .col-sm-11 {
        width: 100%;
    }
    .panel-body {
        padding: 15px 30px 15px 0;
    }
</style>

<div class="panel-body" style="padding-top:10px;background-color: white;">
        <form:form id="inputForm" data-parsley-validate="" modelAttribute="pregnantVisit" method="post" class="form-horizontal" >
            <input type="hidden" name="id" id="id" value="${pregnantVisit.id}" >
            <input type="hidden" id="clinicId" name="clinicId" value="${clinicMaster.id}" >
            <input type="hidden" name="patientId" value="${clinicMaster.patientId}" >
            <input type="hidden" name="cardNo" value="${clinicMaster.patMasterIndex.cardNo}" >
            <input type="hidden" id="idNo" name="idNo" value="${clinicMaster.patMasterIndex.idNo}" >
            <input type="hidden" name="visitDept" value="${clinicMaster.deptId}" >
            <input type="hidden" name="orgId" value="${clinicMaster.orgId}" >
            <input type="hidden" id="title" name="title" value="${pregnantVisit.gestationalTitle}" >
            <input type="hidden" id="tempNum" name="tempNum" value="${pregnantVisit.visitInt}" >
            <input type="hidden" name="type" value="1" >
            <div class="col-sm-11 col-margin">
                <label class="col-sm-2 control-label">复诊记录：</label>
                <div class="col-sm-10">
                    <sys:select onclick="selectOnclick(this)" checkValue="${pregnantVisit.gestationalTitle}"
                                lists="${fns:getDictList('PREGNANT_VISIT_RECORDS')}"
                                className="form-control" name="gestationalTitle"></sys:select>
                </div>
            </div>
            <div class="col-sm-11 col-margin">
                <label class="col-sm-2 control-label">检查时间：</label>
                <div class="col-sm-4">
                    <input type="text" name="testingDatetime"  id="testingDatetime"
                           value="<fmt:formatDate value="${pregnantVisit.testingDatetime}" pattern="yyyy-MM-dd  HH:mm:ss" type="date" dateStyle="long" />" onclick="WdatePicker({dateFmt:'yyyy-MM-dd  HH:mm:ss',isShowClear:false});" class="form-control Wdate">
                </div>
                <label class="col-sm-2 control-label">就诊次数：</label>
                <div class="col-sm-4">
                    <input type="number" min="0" max="99" name="visitInt" id="visitInt" value="${pregnantVisit.visitInt }" class="form-control">
                </div>
            </div>
            <div class="col-sm-11 col-margin">
                <label class="col-sm-2 control-label">孕&#8195;&#8195;周：</label>
                <div class="col-sm-4">
                    <input type="number" min="0" max="99" name="gestationalWeeks" id="gestationalWeeks" value="${pregnantVisit.gestationalWeeks}" class="form-control">
                </div>
                <label class="col-sm-2 control-label">血&#8195;&#8195;压：</label>
                <div class="col-sm-3">
                    <input type="number" min="0" max="300" name="gexamBloodPressure" id="gexamBloodPressure"
                           value="${pregnantVisit.gexamBloodPressure}" class="form-control">
                </div>
                <label class="col-sm-1 control-label">mmHg</label>
            </div>
            <div class="col-sm-11 col-margin">
                <label class="col-sm-2 control-label">体&#8195;&#8195;重：</label>
                <div class="col-sm-3">
                    <input type="number" min="0" max="500" name="gexamWeight" id="gexamWeight"
                           value="${pregnantVisit.gexamWeight}" class="form-control">
                </div>
                <label class="col-sm-1 control-label">Kg</label>
                <label class="col-sm-2 control-label ">宫底高度：</label>
                <div class="col-sm-3">
                    <input type="number" min="0" max="300" name="fundusHeight" id="fundusHeight"
                           value="${pregnantVisit.fundusHeight}" class="form-control">
                </div>
                <label class="col-sm-1 control-label">cm</label>
            </div>
            <div class="col-sm-11 col-margin">
                <label class="col-sm-2 control-label">腰&#8195;&#8195;围：</label>
                <div class="col-sm-3">
                    <input type="number" min="0" max="500" name="abdominalCircum" id="abdominalCircum"
                           value="${pregnantVisit.abdominalCircum}" class="form-control">
                </div>
                <label class="col-sm-1 control-label">cm</label>
                <label class="col-sm-2 control-label ">胎心率：</label>
                <div class="col-sm-3">
                    <input type="number" min="0" max="999" name="fetalHeartRate" id="fetalHeartRate"
                           value="${pregnantVisit.fetalHeartRate}" class="form-control">
                </div>
                <label class="col-sm-1 control-label">次/分</label>
            </div>
            <div class="col-sm-11 col-margin">
                <label class="col-sm-2 control-label">胎方位：</label>
                <div class="col-sm-4">
                    <input type="text"  name="fetalPosition" id="fetalPosition"
                           value="${pregnantVisit.fetalPosition}" class="form-control">
                </div>
                <label class="col-sm-2 control-label ">先&#8195;&#8195;露：</label>
                <div class="col-sm-4">
                    <input type="text"  name="fetalPresentation" id="fetalPresentation"
                           value="${pregnantVisit.fetalPresentation}" class="form-control">
                </div>
            </div>
            <div class="col-sm-11 col-margin">
                <label class="col-sm-2 control-label">衔&#8195;&#8195;接：</label>
                <div class="col-sm-4">
                    <input type="text"  name="fetalJoin" id="fetalJoin"
                           value="${pregnantVisit.fetalJoin}" class="form-control">
                </div>
                <label class="col-sm-2 control-label ">浮&#8195;&#8195;肿：</label>
                <div class="col-sm-4">
                    <input type="text"  name="fetalEdema" id="fetalEdema"
                           value="${pregnantVisit.fetalEdema}" class="form-control">
                </div>
            </div>
            <div class="col-sm-11 col-margin">
                <label class="col-sm-2 control-label">血红蛋白：</label>
                <div class="col-sm-3">
                    <input type="number" min="0" max="999"  name="hemoglobinValues" id="hemoglobinValues"
                           value="${pregnantVisit.hemoglobinValues}" class="form-control">
                </div>
                <label class="col-sm-1 control-label">g/l</label>
                <label class="col-sm-2 control-label ">尿蛋白：</label>
                <div class="col-sm-4">
                    <input type="text"  name="urineProtein" id="urineProtein"
                           value="${pregnantVisit.urineProtein}" class="form-control">
                </div>
            </div>
            <div class="col-sm-11 col-margin">
                <label class="col-sm-2 control-label">尿&#8195;&#8195;糖：</label>
                <div class="col-sm-4">
                    <input type="text" name="urine" id="urine"
                           value="${pregnantVisit.urine}" class="form-control">
                </div>
            </div>
            <div class="col-sm-11 col-margin">
                <label class="col-sm-2 control-label">超声检查：</label>
                <div class="col-sm-10">
                    <input type="text"   name="fetalUltrasound" id="fetalUltrasound"
                           value="${pregnantVisit.fetalUltrasound}" class="form-control">
                </div>
            </div>
            <div class="col-sm-11 col-margin">
                <label class="col-sm-2 control-label">产&#8195;&#8195;筛：</label>
                <div class="col-sm-4">
                    <input type="text"  name="screenProduction" id="screenProduction"
                           value="${pregnantVisit.screenProduction}" class="form-control">
                </div>
                <label class="col-sm-2 control-label">唐&#8195;&#8195;筛：</label>
                <div class="col-sm-4">
                    <input type="text" name="tangShai" id="tangShai"
                           value="${pregnantVisit.tangShai}" class="form-control">
                </div>
            </div>
            <div class="col-sm-11 col-margin">
                <label class="col-sm-2 control-label">肝功能：</label>
                <div class="col-sm-4">
                    <input type="text"  name="labLiverFunction" id="labLiverFunction"
                           value="${pregnantVisit.labLiverFunction}" class="form-control">
                </div>
                <label class="col-sm-2 control-label">肾功能：</label>
                <div class="col-sm-4">
                    <input type="text" name="labRenalFunction" id="labRenalFunction"
                           value="${pregnantVisit.labRenalFunction}" class="form-control">
                </div>
            </div>
            <div class="col-sm-11 col-margin">
                <label class="col-sm-2 control-label">胎动计数：</label>
                <div class="col-sm-4">
                    <input type="text"  name="fetalMovement" id="fetalMovement"
                           value="${pregnantVisit.fetalMovement}" class="form-control">
                </div>
                <label class="col-sm-2 control-label">胎心监护NST：</label>
                <div class="col-sm-4">
                    <input type="text" name="fetalHeartRateNst" id="fetalHeartRateNst"
                           value="${pregnantVisit.fetalHeartRateNst}" class="form-control">
                </div>
            </div>
            <div class="col-sm-11 col-margin">
                <label class="col-sm-2 control-label">对角径：</label>
                <div class="col-sm-3">
                    <input type="text"  name="inPelvimetryCd" id="inPelvimetryCd"
                           value="${pregnantVisit.inPelvimetryCd}" class="form-control">
                </div>
                <label class="col-sm-1 control-label">cm</label>
                <label class="col-sm-2 control-label">坐骨棘间径：</label>
                <div class="col-sm-3">
                    <input type="text"  name="inPelvimetryBd" id="inPelvimetryBd"
                           value="${pregnantVisit.inPelvimetryBd}" class="form-control">
                </div>
                <label class="col-sm-1 control-label">cm</label>
            </div>
            <div class="col-sm-11 col-margin">
                <label class="col-sm-2 control-label">坐骨切迹宽度：</label>
                <div class="col-sm-3">
                    <input type="text"  name="inPelvimetrySnwith" id="inPelvimetrySnwith"
                           value="${pregnantVisit.inPelvimetrySnwith}" class="form-control">
                </div>
                <label class="col-sm-1 control-label">cm</label>
            </div>

            <div class="col-sm-11 col-margin">
                <label class="col-sm-2 control-label">37周专家鉴定：</label>
                <div class="col-sm-4">
                    <sys:select isNull="1" checkValue="${pregnantVisit.thirtySeventhDoctor}"
                                lists="${fns:getDictList('MODE_OF_DELIVERY')}"
                                className="form-control" name="thirtySeventhDoctor"></sys:select>                    </div>
                <label class="col-sm-2 control-label">鉴定时间：</label>
                <div class="col-sm-4">
                    <input type="text" name="expertTestimonyTime"  id="expertTestimonyTime"
                           value="<fmt:formatDate value="${pregnantVisit.expertTestimonyTime}" pattern="yyyy-MM-dd" type="date" dateStyle="long" />" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});" class="form-control Wdate">
                </div>
            </div>
            <div class="col-sm-11 col-margin">
                <label class="col-sm-2 control-label">分&#8195;&#8195;类：</label>
                <div class="col-sm-10">
                    <input type="text"   name="classMemo" id="classMemo"
                           value="${pregnantVisit.classMemo}" class="form-control">
                </div>
            </div>
            <div class="col-sm-11 col-margin">
                <label class="col-sm-2 control-label">高危评估：</label>
                <div class="col-sm-4">
                    <sys:select onclick="selectOnclick(this)" checkValue="${pregnantVisit.hrsPossess}"
                                lists="${fns:getDictList('HIGH_RISK_ASSESSMENT')}"
                                className="form-control" name="hrsPossess"></sys:select>                    </div>
                <label class="col-sm-2 control-label">评&#8195;&#8195;分：</label>
                <div class="col-sm-4">
                    <input type="number" min="0" max="100" name="hrsScore" id="hrsScore"
                           value="${pregnantVisit.hrsScore}" class="form-control">
                </div>
            </div>
            <div class="col-sm-11 col-margin">
                <label class="col-sm-2 control-label">高危因素：</label>
                <div class="col-sm-10">
                    <input type="text"   name="hrsReason" id="hrsReason"
                           value="${pregnantVisit.hrsReason}" class="form-control">
                </div>
            </div>
            <div class="col-sm-11 col-margin">
                <label class="col-sm-2 control-label">保健指导：</label>
                <div class="col-sm-10">
                    <input type="text"   name="healthGuidance" id="healthGuidance"
                           value="${pregnantVisit.healthGuidance}" class="form-control">
                </div>
            </div>
            <div class="col-sm-11 col-margin">
                <label class="col-sm-2 control-label">转诊情况：</label>
                <div class="col-sm-4">
                    <sys:select onclick="selectOnclick(this)" checkValue="${pregnantVisit.referral}"
                                lists="${fns:getDictList('PREGNANT_REFERRAL')}"
                                className="form-control" name="referral"></sys:select>
                </div>
                <label class="col-sm-2 control-label">转诊机构及科室：</label>
                <div class="col-sm-4">
                    <input type="text"  name="referralCompany"
                           id="referralCompany" value="${pregnantVisit.referralCompany}" class="form-control">
                </div>
            </div>
            <div class="col-sm-11 col-margin">
                <label class="col-sm-2 control-label">转诊原因：</label>
                <div class="col-sm-10">
                    <input type="text"   name="referralReason" id="referralReason"
                           value="${pregnantVisit.referralReason}" class="form-control">
                </div>
            </div>
            <div class="col-sm-11 col-margin">
                <label class="col-sm-2 control-label">检查单位：</label>
                <div class="col-sm-4">
                    <input type="text"  name="inspectionUnit" readonly="true"
                           id="inspectionUnit" value="${pregnantVisit.inspectionUnit}" class="form-control">
                </div>
                <label class="col-sm-2 control-label">检查科室：</label>
                <div class="col-sm-4">
                    <input type="text"  name="deptName" readonly="true"
                           id="deptName" value="${pregnantVisit.deptName}" class="form-control">
                </div>
            </div>
            <div class="col-sm-11 col-margin">
                <label class="col-sm-2 control-label">检查医师：</label>
                <div class="col-sm-4">
                    <input type="text"  name="doctorName" readonly="true"
                           id="doctorName" value="${pregnantVisit.doctorName}" class="form-control">
                </div>
                <label class="col-sm-2 control-label">下次随访时间：</label>
                <div class="col-sm-4">
                    <input type="text" name="nextExamDatetime"  id="nextExamDatetime"
                           value="<fmt:formatDate value="${pregnantVisit.nextExamDatetime}" pattern="yyyy-MM-dd" type="date" dateStyle="long" />" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});" class="form-control Wdate">
                </div>
            </div>
        </form:form>
</div>
<script src="${ctxStatic}/js/doctor/pregnantVisitForm.js"></script>
